package cn.wolfcode.business.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {
    public static Date changeDate (Date date,Integer type,Integer amout){

        //参数验证
        if(date==null||type==null||amout==null){
            return null;
        }
      Calendar calendar= Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(type,amout);
        return calendar.getTime();


    }

}
